package com.tencent.liteav.demo.superplayer.helper;

import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;

public class ViewHelper {

    public static View removeParent(View view){
        ViewParent parent = view.getParent();
        if (null != parent) {
            if (parent instanceof ViewGroup){
                ((ViewGroup)parent).removeView(view);
            }
        }
        return view;
    }

}
